AWSS3DeleteBucket
Type
command
Summary
Delete a bucket.
Syntax
AWSS3DeleteBucket <pBucket>,<pCallback>
Description
The caller of this command will be sent the callback message on completion with two parameters:
- the request ID
- the response from the server which should be empty.
- an error message if one occurred
For futher details about this API see the AWS S3 REST API Documentation
note
The message is sent before the tsNet connection is closed so it is possible to access the recieved headers using the tsNetRetrHeaders function
Parameters
Name | Type | Description |
---|---|---|
pBucket | The name of a bucket | |
pCallback | A command name to be sent on completion with the server reponse. |
Examples
AWSS3DeleteBucket "mybucket", "deleteBucketCallback"
put it into tRequestID
on deleteBucketCallback pRequestID, pResult, pError
if pError is empty then
answer "Bucket deleted"
end if
end deleteBucketCallback
Related
function: tsNetGetStatus, tsNetRetrHeaders
library: tsNet